package com.sy.wz.client.config;

import com.sy.wz.client.ucenter.User.UserFallBackClient;
import feign.Logger;
import feign.Request;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Create by wongloong on 17-8-18
 */
@Configuration
public class FeignConfiguration {
    @Bean
    public Logger.Level feignLogger() {
        return Logger.Level.FULL;
    }

    @Bean
    public Request.Options options() {
        return new Request.Options(5000, 5000);
    }

    @Bean
    public UserFallBackClient testFallBackService() {
        System.out.println("====================================================================================");
        return new UserFallBackClient();
    }
}
